'''
Created on 05/03/2009

@author: Edward
'''
from google.appengine.ext import bulkload
from google.appengine.ext import search

# This class is responsible for loading the default hub users into the datastore
class HubUserLoader(bulkload.Loader):
  def __init__(self):
    bulkload.Loader.__init__(self, 'HubUser',
                         [('username', str),
                          ('admin', bool),
                          ('password', str)])

  def HandleEntity(self, entity):
    ent = search.SearchableEntity(entity)
    return ent

if __name__ == '__main__':
  bulkload.main(HubUserLoader())